package com.tedu._04mybatis.pojo;

import java.util.Date;
import java.util.List;

/**
 * ORM - 对象关系映射
 * 使用一个java对象表示
 */
public class UserVO2 {

    private Integer id;

    private String username;

    private String password;

    private String nickname;

    private Date created;
    //一个用户可以对应多条微博消息
    private List<WeiBo> weiboList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public List<WeiBo> getWeiboList() {
        return weiboList;
    }

    public void setWeiboList(List<WeiBo> weiboList) {
        this.weiboList = weiboList;
    }

    @Override
    public String toString() {
        return "UserVO2{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", created=" + created +
                ", weiboList=" + weiboList +
                '}';
    }
}
